<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<div class="pageContent">
	<form method="post" action="update_Book_dwz"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!--  图书编号-->
			<input name="book.bookId" type="hidden" size="30"
				value="${book.bookId}" />
			<p>
				<label> 图书ISBN： </label> <input name="book.isbn" type="text"
					size="30" value="${book.isbn}"
					class="required alphanumeric textInput" />
			</p>
			<p>
				<label> 图书名称： </label> <input name="book.bookName" type="text"
					size="30" alt="" value="${book.bookName}"
					class="required textInput" />
			</p>
			<p>
				<label> 图书类型： </label>
				<s:select list="#request.sysParaList" name="book.bookType"></s:select>
			</p>
			<p>
				<label> 图书作者： </label> <input name="book.author" type="text"
					size="30" alt="" value="${book.author}" class="required textInput" />
			</p>
			<p>
				<label> 出版社： </label> <input name="book.press" type="text" size="30"
					alt="" value="${book.press}" class="required textInput" />
			</p>
			<p>
				<label> 图书定价： </label> <input name="book.price" type="text"
					size="30" alt="" value="${book.price}"
					class="required number textInput" />
			</p>
			<p>
				<label> 捐赠人编号： </label> <input name="book.donator.donatorId"
					type="text" size="30" alt="" value="${book.donator.donatorId}"
					class="required digits textInput" />
			</p>
			<p>
				<label> 存放书架： </label> <input name="book.bookrack" type="text"
					size="30" alt="" value="${book.bookrack}"
					class="required digits textInput" />
			</p>
			<p>
				<label> 捐赠时间： </label> <input type="text" name="book.donatorTime"
					class="date required" readonly="readonly"
					value="${book.donatorTime}" /> <a class="inputDateButton"
					href="javascript:;">选择</a> <span class="info">yyyy-MM-dd</span>
			</p>
			<p>
				<label> 是否可借： </label> <select class="combox" name="book.borrowOK"
					class="required">
					<s:if test="book.borrowOK==1">
						<option value="1" selected="selected">可借</option>
						<option value="0">不可借</option>
					</s:if>
					<s:elseif test="book.borrowOK==0">
						<option value="1">可借</option>
						<option value="0" selected="selected">不可借</option>
					</s:elseif>
				</select>
			</p>
			<p>
				<label> 操作员编号： </label> <input name="book.operatorId" type="text"
					size="30" alt="" value="${book.operatorId}" readonly="readonly" />
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>

